
using System.Diagnostics;

public class GitIntegration
{
    public List<string> GetChangedFiles()
    {
        var files = new List<string>();
        var process = new Process
        {
            StartInfo = new ProcessStartInfo
            {
                FileName = "git",
                Arguments = "diff --name-only",
                RedirectStandardOutput = true,
                UseShellExecute = false,
                CreateNoWindow = true
            }
        };

        process.Start();
        while (!process.StandardOutput.EndOfStream)
        {
            var line = process.StandardOutput.ReadLine();
            if (!string.IsNullOrEmpty(line))
            {
                files.Add(line);
            }
        }

        return files;
    }
} 